package com.study.行为型模式.策略模式.改进;

public class WildDuck extends Duck{
    //构造器，传入一个FlyStrategy对象
    public WildDuck() {
        flyStrategy = new GoodFlyStrategy();
    }


    @Override
    public void display() {
        System.out.println("这是野生鸭");
    }
}
